import { put, all, takeLatest } from 'redux-saga/effects'
import { modal as modalDuck } from 'ducks'

function* closeSaga(action) {
  yield put(action.func)
}

export default function* sagas() {
  yield all([takeLatest(modalDuck.types.CLOSE, closeSaga)])
}
